package com.salt.modules.sys.entity;

import com.salt.common.persistence.DataEntity;
import lombok.*;

/**
 * @Description 管理员
 * @Author salt
 * @Date 2022/1/11
 * @Version 1.0.1
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Admin extends DataEntity<Admin> {

    private User user;
    private String tenant;  // 租户标识

    public Admin(User user) {
        this.user = user;
    }

    public Admin(String tenant) {
        this.tenant = tenant;
    }

}
